<?php include $this->header();?>
<?php if(false) {?>
<link rel="stylesheet" rev="stylesheet" href="../../../images/admincp/style.css" type="text/css" media="all" />
<?php }?>
<div class="wrap">
<form method="post" enctype="application/x-www-form-urlencoded" target="_self" onsubmit="return Validator.Validate(this)">
<?php if(!empty($_GET['role_type'])) {?>
<input type="hidden" name="role_type" value="<?=$_GET['role_type']?>" />
<?php }?>
<div class="bd p1 mt">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="rank">
    <tr>
        <td width="140" align="right" valign="middle">角色名称</td>
        <td><input name="role_name" type="text" class="text-box" id="role_name" onblur="Validator.check(this)" value="<?=$role['role_name']?>" dataType="Require" msg="请填写角色名称" /> <b class="red">*</b> <span class="note">和用户组相似</span></td>
    </tr>
<?php if(empty($_GET['role_type'])) {?>
    <tr>
        <td align="right" valign="middle">角色类型</td>
        <td>
            <input type="radio" name="role_type" value="admin" <?php if($role['role_type']=='admin') {?>checked="checked"<?php } ?> />管理员 &nbsp; 
            <input type="radio" name="role_type" value="member" <?php if($role['role_type']=='member') {?>checked="checked"<?php } ?> />会员 &nbsp; 
            <input type="radio" name="role_type" value="special" <?php if($role['role_type']=='special') {?>checked="checked"<?php } ?> />特殊
        </td>
    </tr>
<?php }?>
    <tr>
        <td align="right" valign="middle">描述</td>
        <td><textarea name="role_desc" cols="60" rows="6"><?=$role['role_desc']?></textarea></td>
    </tr>
    <tr>
        <td align="right" valign="middle">权限设置</td>
        <td>--</td>
    </tr>
    <tr>
        <td align="right" valign="middle" class="nobd">&nbsp;</td>
        <td class="nobd"><input class="btn" type="submit" value="编辑" /></td>
    </tr>
</table>
</div>
</form>
</div>
<?php include $this->footer();?>